﻿using Infrastructure.Common.Data;
using TallyBook.DAL.Mode;

namespace TallyBook.DAL.Repository.Imp
{
    public class UserRepository
    {
        private readonly IDbHelper _dbHelper = DbFactory.Instance.CreateDbHelper();

        public bool Exits(User user)
        {
            string sql = "select * from User where username='" + user.Name + "'and password='" + user.Password + "'";
            return _dbHelper.ExecuteCommand(sql);
        }
    }
}